﻿<% include Includes/Header.inc %>
using System.ServiceModel;
<%
_out.targetFile =  util.format('%s/Contracts/I%sQueryService.Generator.cs', projectDirectory,table.singular);
%>

using <%= rootNamespace %>.Bases;
using <%= rootNamespace %>.Models;

namespace <%= rootNamespace %>.Contracts
{
    [ServiceContract]
    public partial interface I<%= table.singular %>QueryService
    {
        [OperationContract]
        IEnumerable<<%= table.singular %>> Fetch(string whereClause, object[] whereClauseParams, string orderClause);

        [OperationContract]
        <%= table.singular %> SingleOrDefault(string whereClause, object[] whereClauseParams, string orderClause);
    }
}